package com.bzsys.action;

import com.bzsys.bean.MailBean;
import com.bzsys.mail.SendMail;

public class EmailThread extends Thread {
	
	private MailBean mailBean;
	public EmailThread(MailBean mailBean){
		this.mailBean = mailBean;
	}
	
	@Override
	public void run(){
		SendMail sendMail = SendMail.getInstance();
		sendMail.doSendMail(mailBean.getSubject(),mailBean.getContent());
	}
	
}
